package com.maoshi.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maoshi.shop.bean.model.MyDistance;
import com.maoshi.shop.dao.MyDistanceMapper;
import com.maoshi.shop.service.MyDistanceService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class MyDistanceServiceImpl extends ServiceImpl<MyDistanceMapper, MyDistance> implements MyDistanceService {
    private final MyDistanceMapper myDistanceMapper;
    @Override
    public MyDistance getMaxDistance(Long id) {
        return myDistanceMapper.selectById(id);
    }
}
